package com.group5.onlinegame.service;

import com.github.pagehelper.PageInfo;
import com.group5.onlinegame.entity.Roles;
import com.group5.onlinegame.entity.User;
import com.group5.onlinegame.entity.UserRole;
import com.group5.onlinegame.entity.Vip;

import java.sql.Timestamp;
import java.util.List;


public interface IUserService {
   PageInfo<User> getUserList(Integer pageNum, User user);
   int delall(int[] id);
   int countUserByName(String username);
   int delone(int id);
   List<Vip> getVipList();
   int adduser(User user);
   User countUserById(int id);
   int editByid(User user);
   Vip getVipById(Integer id);
   List<Roles> getUserListRoles();
   int adduserrole(UserRole userRole);
   int getSeq();
   int editUserRoleById(UserRole userRole);
   List<Timestamp> gettime();
   int onoroff(User user);
}
